﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace WJP.Queue.Socketing
{
    /// <summary>
    /// TCP连接
    /// </summary>
    public interface ITcpConnection
    {
        Guid Id { get; }

        bool IsConnected { get; }

        EndPoint LocalEndPoint { get; }

        EndPoint RemotingEndPoint { get; }

        void QueueMessage(byte[] message);

        void Close();
    }
}
